﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="R_Violaton.aspx.cs" Inherits="ReportUI_R_Violaton" Theme="Red" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>无标题页</title>

    <script src="../JavaScript/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
    <script src="../JavaScript/jquery-1.9.1.js" type="text/javascript"></script>
    <script src="../JavaScript/jquery-ui.js" type="text/javascript"></script>
    <link rel="stylesheet" type="text/css" href="../CSS/jquery-ui.css" />
        
        
        <script type="text/javascript">
            $(document).ready(function() {

                //车牌号自动下拉
                $("#txt_Car").autocomplete({ source: "../ashx/autocomplete.ashx" });

                //判断是否存在该车
                $("#txt_Car").blur(function() {

                    $.get("../ashx/validate.ashx", { ID: $("#txt_Car").val() }, function(data, status) {
                        if (data == "") {
                            alert("不存在该车信息,请重新录入车牌号或车架号!");
                            //alert("数据：" + data + "\n状态：" + status);
                        }
                        else {
                            //$("#txt_FrameNO").val(data);
                        }
                    });

                });


            });
     </script>
    
    
    
            <style type="text/css">
    .menu
    {
    	float:left; margin-left:10px;
    }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div id="SubMain"> <div id="S_Title">违章数</div>
       <div id="R_Body">
       <div id="R_Top">
       <div class="menu">
        <asp:DropDownList ID="ddl_Type" runat="server" AutoPostBack="True" 
               onselectedindexchanged="ddl_Type_SelectedIndexChanged">
        </asp:DropDownList>
        </div>
                               
        <div  class="menu">
          <asp:Panel ID="Panel_Organ" runat="server" Width="180px">
              <asp:Literal ID="Literal1" runat="server">选择机构：</asp:Literal>
            <asp:DropDownList ID="ddl_Organ" runat="server">
            </asp:DropDownList>
            </asp:Panel>
            </div>
        <div  class="menu">
        <asp:Panel ID="Panel_Car" runat="server" Width="180px">
            <asp:Literal ID="Literal2" runat="server">车牌号：</asp:Literal>
            <asp:TextBox ID="txt_Car" runat="server" Width="92px"></asp:TextBox>
            </asp:Panel>
        </div>
        <div  class="menu">
        <asp:Panel ID="Panel_Time" runat="server" Width="350px">
            <asp:Literal ID="Literal3" runat="server">时间范围：</asp:Literal>
            <asp:TextBox ID="txt_StartTime" runat="server" onClick="WdatePicker()" 
                Width="97px"></asp:TextBox>--至--<asp:TextBox ID="txt_EndTime" 
                runat="server" onClick="WdatePicker()" Width="98px"></asp:TextBox>
        </asp:Panel>
        </div>
         <div  class="menu"><asp:Button ID="btn_Search" runat="server" Text="查看" onclick="btn_Search_Click" /></div>
    </div>
    
        <div><asp:GridView ID="GridView1" runat="server">
        </asp:GridView></div>
    
    </div>
    <div  id="R_Foot">
    
        <asp:Button ID="btn_Excel" runat="server" Text="导出EXCEL" 
            onclick="btn_Excel_Click" />
    
    </div>
            <asp:ObjectDataSource ID="ods_Type" runat="server" SelectMethod="GetReportSort" 
            TypeName="BLL.ReportBLL">
            <SelectParameters>
                <asp:Parameter DefaultValue="违章" Name="fatherID" Type="String" />
            </SelectParameters>
        </asp:ObjectDataSource>
    </div>
    </form>
</body>
</html>
